<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<div class="bjui-pageHeader">
    <form id="pagerForm" method="get" action="/wechat/generator/base_list" data-toggle="ajaxsearch" data-options="{validate:false}">
        <input type="hidden" name="pageSize" th:value="${pageResult.pageSize}" />
        <input type="hidden" name="pageCurrent" th:value="${pageResult.pageCurrent}" />
        <input type="hidden" name="orderField" th:value="${pageResult.orderField}" />
        <input type="hidden" name="orderDirection" th:value="${pageResult.orderDirection}" />
        <div class="bjui-searchBar">
            <label>用户名称：</label><input type="text" name="userName" value="" />
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">功能操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li><a href="/wechat/generator/base_add_page" data-toggle="dialog" data-width="600" data-height="400" data-id="dialog-mask" data-mask="true"><i class="fa fa-plus"></i> 新增数据</a></li>
                        <li><a href="" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="delids" data-group="ids">删除选中</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"/></th>
            <th>类型</th>
            <th>原始ID</th>
            <th>微信号</th>
            <th>昵称</th>
            <th>App ID</th>
            <th>App Secret</th>
            <th>渠道商</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="official,officialStat:${pageResult.list}">
            <td><input type="checkbox" name="ids" data-toggle="icheck" th:value="${official.uuid}" /></td>
            <td th:text="${official.type}"></td>
            <td th:text="${official.openId}"></td>
            <td th:text="${official.wechat}"></td>
            <th th:text="${official.nickName}"></th>
            <td th:text="${official.appId}"></td>
            <td th:text="${official.appSecret}"></td>
            <td th:text="${official.channel}"></td>
            <td>
                <a th:href="@{/system/user/edit(uuid=${official.uuid})}" class="btn btn-green" data-toggle="dialog" data-width="1000" data-height="600" data-id="dialog-mask" data-mask="true">编辑</a>
                <a th:href="@{/system/user/delete(uuid=${official.uuid})}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除吗？">删除</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<div th:replace="common/pageFooter :: pageFooter"/>
</html>
